import request from '@/utils/request'

// 查询测点信息列表
export function listDispatchMeasurementPoint(query) {
  return request({
    url: '/system/dispatchMeasurementPoint/list',
    method: 'get',
    params: query
  })
}

// 查询测点信息详细
export function getDispatchMeasurementPoint(measurementPointId) {
  return request({
    url: '/system/dispatchMeasurementPoint/' + measurementPointId,
    method: 'get'
  })
}

// 新增测点信息
export function addDispatchMeasurementPoint(data) {
  return request({
    url: '/system/dispatchMeasurementPoint',
    method: 'post',
    data: data
  })
}

// 修改测点信息
export function updateDispatchMeasurementPoint(data) {
  return request({
    url: '/system/dispatchMeasurementPoint',
    method: 'put',
    data: data
  })
}

// 删除测点信息
export function delDispatchMeasurementPoint(measurementPointId) {
  return request({
    url: '/system/dispatchMeasurementPoint/' + measurementPointId,
    method: 'delete'
  })
}
